package com.openroom.ui;

import java.io.File;
import java.io.FileFilter;

public class SupportedFileFilter implements FileFilter {
	public static final String[] SUPPORTED_FILE_EXTENSION = new String[] {
			"jpg", "jpeg", "JPG", "JPEG", "CR2", "cr2","NEF","nef" };

	@Override
	public boolean accept(File pathname) {
		if (pathname.getPath().toLowerCase().endsWith("jpg")
				|| pathname.getPath().toLowerCase().endsWith("jpeg")
				|| pathname.getPath().toLowerCase().endsWith("cr2"))
			return true;
		return false;
	}
}